package com.kenliang.javase.spi;

/**
 * @author KenLiang
 * @description:
 * @date Created in 5:53 PM 2019/8/15.
 */
public interface ObjectSerializer {
    byte[] serialize(Object obj) throws Exception;

    <T> T deSerialize(byte[] param, Class<T> clazz) throws Exception;

    String getSchemeName();

}
